package com.ajk.server.model;

import java.util.Date;
/**
 * 疾病-身体部位关系表  <br>
 * r_disease_bodypart <br>
 * v1.0 2016-05-01
 */
 public class DiseaseBodypartRel extends BaseModel{
	
	private static final long serialVersionUID = 1L;
	
 	
 	//id
	private Integer id;

 	//疾病ID t_disease 表ID
 	//disease_id
	private Integer diseaseId;

 	//患病部位
 	//body_part_id
	private Integer bodyPartId;

 	//是否在用,0：未使用,1：正在使用
 	//in_used
	private Integer inUsed;

 	
 	//last_modify_time
	private Date lastModifyTime;

 	
 	//create_time
	private Date createTime;

	
	/**
	*
 	*id
 	*/
	public Integer getId() {
		return id;
	}
	
	/**
	*
 	*id
 	*/
	public void setId(Integer id) {
		this.id = id;
	}
	
	/**
	*疾病ID t_disease 表ID
 	*disease_id
 	*/
	public Integer getDiseaseId() {
		return diseaseId;
	}
	
	/**
	*疾病ID t_disease 表ID
 	*disease_id
 	*/
	public void setDiseaseId(Integer diseaseId) {
		this.diseaseId = diseaseId;
	}
	
	/**
	*患病部位
 	*body_part_id
 	*/
	public Integer getBodyPartId() {
		return bodyPartId;
	}
	
	/**
	*患病部位
 	*body_part_id
 	*/
	public void setBodyPartId(Integer bodyPartId) {
		this.bodyPartId = bodyPartId;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public Integer getInUsed() {
		return inUsed;
	}
	
	/**
	*是否在用,0：未使用,1：正在使用
 	*in_used
 	*/
	public void setInUsed(Integer inUsed) {
		this.inUsed = inUsed;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public Date getLastModifyTime() {
		return lastModifyTime;
	}
	
	/**
	*
 	*last_modify_time
 	*/
	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public Date getCreateTime() {
		return createTime;
	}
	
	/**
	*
 	*create_time
 	*/
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj!=null){
			DiseaseBodypartRel other = (DiseaseBodypartRel) obj;
			if(this.bodyPartId!=null && this.inUsed!=null && this.diseaseId!=null && other.bodyPartId!=null && other.inUsed!=null && other.diseaseId!=null){
				return bodyPartId.intValue()==other.bodyPartId && inUsed.intValue()==other.inUsed && diseaseId.intValue()==other.diseaseId;
			}
		}
		return false;
	}
	
	
	@Override
	public void dealWith(){
		super.dealWith();
		
	}
}	